package com.logservice.controller;

import com.sml.response.LogView;
import com.logservice.service.LogService;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author linlx
 * @Date 2021/8/12 15:06
 * @Description
 **/
@RestController
public class LogController {

  @Resource
  private LogService logService;

  @GetMapping("/log")
  public List<LogView> getLog(@RequestParam String feignId) {
    return logService.getLog(feignId);
  }


  @GetMapping("/logAll")
  public List<List<LogView>> getLogAll() {
    return logService.getLogAll();
  }

}
